﻿@model Dictionary<string, System.Data.DataTable>
@{
    ViewBag.Title = "PreViewData";
    Layout = "~/Areas/SmartPfa/Views/Shared/_Layout.cshtml";
}
<h2>
    PreViewData</h2>
@foreach (var item in Model.Keys)
{
    @Html.ActionLink(item, "PreViewData", new { id = item });
    <table border="1">
        @for (var i = 0; i < Model[item].Rows.Count; i++)
        {
            <tr>
                <td>@i
                </td>
                @for (int j = 0; j < Model[item].Columns.Count; j++)
                {
                    <td>@Model[item].Rows[i][j]
                    </td>
                }
            </tr>
        }
    </table>
}